package team.yidong.fenda.service;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.web.multipart.MultipartFile;
import team.yidong.fenda.entity.Master;
import team.yidong.fenda.entity.User;

import java.io.FileNotFoundException;
import java.util.List;

/**
 * Created by xuanlong on 2017/10/24.
 */
public interface MasterService {
    String addMaster(String name, String info, String goodAt, String hospitalName, String userName, String password, Integer departmentId, String phoneNum);

    JSONObject findMaster(Integer hospitalId, String hospitalName, String name, String goodAt, Double scoreNum, String masterInfo, Integer offset, Integer limit);

    void updateMaster(Master master);

    void updateMasterInfo(Integer masterId, String masterName, String masterGoodAt, String masterInfo, String masterUserName, String masterpassword);

    void deleteMaster(Iterable<Master> masterIterable);

    void deleteMaster1(Master master);

    Master findById(Integer masterId);

    List<Master> findByHospital(Integer hospitalId);

    List<Master> findAll();

    Master findByOpenId(String openId);

    String importMaster(String fileName, MultipartFile mfile) throws FileNotFoundException;

    void addMasterList(List<Master> masterList);

    String findMasterUserName(Integer masterId);

    JSONArray findMasterByHospitalDepartmentId(Integer hospitalDepartmentId);


}
